﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DatabaseComponent;

public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        DetailsView1.ChangeMode(DetailsViewMode.Insert);
        DetailsView2.ChangeMode(DetailsViewMode.Insert);
        DetailsView3.ChangeMode(DetailsViewMode.Insert);

    }

    protected void ObjectDataSource1_ObjectCreated(object sender, ObjectDataSourceEventArgs e)
    {
        RulesDB rd = (RulesDB)e.ObjectInstance;

        rd.Connection = ConnectionStrings.LMS;
    }
    protected void ObjectDataSource2_ObjectCreated(object sender, ObjectDataSourceEventArgs e)
    {
        GroupsDB rd = (GroupsDB)e.ObjectInstance;

        rd.Connection = ConnectionStrings.LMS;
    }
    protected void ObjectDataSource3_ObjectCreated(object sender, ObjectDataSourceEventArgs e)
    {
        GroupRulesDB rd = (GroupRulesDB)e.ObjectInstance;

        rd.Connection = ConnectionStrings.LMS;
    }
}
